package pattern.visitor;

import java.util.Random;

// 具体元素（程序员）
public class Engineer extends Employee{
    public Engineer(String name) {
        super(name);
    }

    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }
    public Integer getCodeLine() {
        return new Random().nextInt(100000);
    }
}
